package com.justgame.project.service.api.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.justgame.project.cloud.common.constant.Const;
import lombok.Data;

import javax.validation.constraints.Null;
import java.io.Serializable;


@Data
public class JustPlatformMap implements Serializable, Cloneable {

    private final static long serialVersionUID = Const.V;

    /**
     * 主键id
     */
    @Null
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private String id;

    /**
     * 游戏id
     */
    @Null
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private String gameInfoId;

    /**
     * 游戏平台id
     */
    @Null
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private String gamePlatformId;

    @Override
    public JustPlatformMap clone() {
        try {
            return (JustPlatformMap) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return new JustPlatformMap();
        }
    }
}
